package com.example.as.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.as.entity.ChatMessage;
import com.example.as.entity.Record;
import com.example.as.entity.Relation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Repository
@Mapper
public interface RelationMapper extends BaseMapper<Relation> {
    @Select("SELECT * FROM relation WHERE user1 = #{masterAccount} OR user2 = #{masterAccount}")
    List<Relation> getRelationList(String masterAccount);
}
